/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.Map;
/*     */ import java.util.UUID;
/*     */ import java.util.concurrent.ConcurrentHashMap;
/*     */ import net.minecraft.client.model.ModelBase;
/*     */ import net.minecraft.entity.Entity;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import net.minecraftforge.fml.client.FMLClientHandler;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public abstract class jca
/*     */ {
/*  24 */   public final Map<String, bo> w = new ConcurrentHashMap<>();
/*     */   
/*  26 */   public final ConcurrentHashMap<UUID, zz> q = new ConcurrentHashMap<>();
/*     */   
/*  28 */   private final ConcurrentHashMap<UUID, zz> g = new ConcurrentHashMap<>();
/*     */ 
/*     */   
/*     */   public zz v(UUID uUID) {
/*  32 */     if (this.w.isEmpty()) {
/*  33 */       return null;
/*     */     }
/*     */ 
/*     */     
/*  37 */     zz zz = this.q.get(uUID);
/*  38 */     if (zz == null) {
/*  39 */       pm pm = pm.z();
/*     */ 
/*     */ 
/*     */       
/*  43 */       zz = pm.v();
/*  44 */       this.q.put(uUID, zz);
/*     */     } 
/*     */     
/*  47 */     return zz;
/*     */   }
/*     */ 
/*     */   
/*     */   public void v(UUID uUID, String str, float f) {
/*  52 */     zz zz = this.q.get(uUID);
/*  53 */     if (zz == null) {
/*     */       return;
/*     */     }
/*  56 */     bo bo = this.w.get(str);
/*  57 */     if (bo == null) {
/*     */       return;
/*     */     }
/*     */     
/*  61 */     gk gk = (new gk(bo)).v(0);
/*  62 */     gk.v(f);
/*  63 */     gk.v(new gk(null));
/*  64 */     zz.v(gk, "base");
/*     */   }
/*     */   
/*     */   public void v(UUID uUID, String str) {
/*  68 */     zz zz = v(uUID);
/*  69 */     if (zz == null)
/*     */       return; 
/*  71 */     zz.v("base", 0);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public zz v(EntityLivingBase entityLivingBase) {
/*  82 */     if (entityLivingBase == null) return null; 
/*  83 */     zz zz = this.g.get(entityLivingBase.func_110124_au());
/*  84 */     if (zz != null && zz.v() == null) {
/*  85 */       return zz;
/*     */     }
/*     */ 
/*     */     
/*  89 */     xea.eos/moe/dragoncore/ija eos/moe/dragoncore/ija = v(entityLivingBase);
/*  90 */     if (eos/moe/dragoncore/ija == null || eos/moe/dragoncore/ija.t()) return null;
/*     */     
/*  92 */     xea.eos/moe/dragoncore/tga eos/moe/dragoncore/tga = eos/moe/dragoncore/ija.v();
/*     */     
/*  94 */     if (eos/moe/dragoncore/tga == null) return null; 
/*  95 */     if (eos/moe/dragoncore/tga.v() == null) return null;
/*     */ 
/*     */ 
/*     */     
/*  99 */     if (zz == null || zz.v() != eos/moe/dragoncore/tga) {
/* 100 */       pm pm = pm.z();
/* 101 */       if (eos/moe/dragoncore/tga.v() != null) {
/* 102 */         for (Map.Entry<String, bo> entry : eos/moe/dragoncore/tga.v().entrySet()) {
/*     */           
/* 104 */           pm.v((String)entry.getKey(), ee.q, 1.0F);
/* 105 */           if (((String)entry.getKey()).contains("walk")) {
/* 106 */             pm.z((new gk((bo)entry.getValue())).v(1.0F), (String)entry.getKey()); continue;
/* 107 */           }  if (((String)entry.getKey()).contains("idle")) {
/* 108 */             pm.v((new gk((bo)entry.getValue())).v(1.0F), (String)entry.getKey());
/*     */           }
/*     */         } 
/*     */       }
/*     */       
/* 113 */       zz = pm.v();
/* 114 */       zz.v(eos/moe/dragoncore/tga);
/* 115 */       this.g.put(entityLivingBase.func_110124_au(), zz);
/* 116 */       return zz;
/*     */     } 
/*     */     
/* 119 */     return this.g.get(entityLivingBase.func_110124_au());
/*     */   }
/*     */   public void v(EntityLivingBase entityLivingBase, String str, int i, boolean bool) {
/*     */     gk gk1;
/*     */     Map<String, bo> map2, map1;
/*     */     be be;
/*     */     gk gk2;
/* 126 */     xea.eos/moe/dragoncore/ija eos/moe/dragoncore/ija = v(entityLivingBase);
/*     */     
/* 128 */     if (eos/moe/dragoncore/ija != null && eos/moe/dragoncore/ija.v()) {
/* 129 */       if (str.equals("attack_ig")) {
/* 130 */         str = "attack";
/*     */       }
/* 132 */       ModelBase modelBase = eos/moe/dragoncore/ija.v().v();
/* 133 */       if (modelBase instanceof iy) {
/* 134 */         iy iy = (iy)modelBase;
/* 135 */         iy.setAnimation(str);
/*     */       } 
/*     */       
/*     */       return;
/*     */     } 
/*     */     
/* 141 */     zz zz = v(entityLivingBase);
/* 142 */     if (zz == null) {
/*     */       return;
/*     */     }
/*     */     
/* 146 */     switch (str) {
/*     */       
/*     */       case "walk":
/* 149 */         if (zz.z() == null) {
/*     */           return;
/*     */         }
/* 152 */         if (!zz.v()) {
/* 153 */           gk gk = zz.z().v();
/* 154 */           zz.v(gk, zz.z().v());
/*     */         } 
/*     */         
/* 157 */         v(entityLivingBase, "idle", 0);
/*     */         break;
/*     */       
/*     */       case "idle":
/* 161 */         if (zz.v() == null)
/*     */           return; 
/* 163 */         if (zz.isOnPlayAnimation())
/*     */           return; 
/* 165 */         gk1 = zz.v().v();
/* 166 */         zz.v(gk1, zz.v().v());
/*     */         break;
/*     */       
/*     */       case "attack_ig":
/* 170 */         map2 = zz.v().v();
/* 171 */         if (!map2.containsKey(str)) {
/* 172 */           str = "attack";
/*     */         }
/*     */ 
/*     */       
/*     */       default:
/* 177 */         map1 = zz.v().v();
/*     */         
/* 179 */         if (!map1.containsKey(str))
/* 180 */           return;  be = zz.v(str);
/* 181 */         if (bool) {
/* 182 */           be.v(ee.w);
/* 183 */           v(entityLivingBase, "all", 0);
/*     */         } else {
/* 185 */           be.v(ee.q);
/* 186 */           v(entityLivingBase, "idle", 0);
/*     */         } 
/*     */ 
/*     */ 
/*     */         
/* 191 */         gk2 = (new gk(map1.get(str))).v(i);
/* 192 */         zz.v(gk2, str);
/*     */         break;
/*     */     } 
/* 195 */     if (eos/moe/dragoncore/ija != null && eos/moe/dragoncore/ija.v() != null) {
/* 196 */       ModelBase modelBase = eos/moe/dragoncore/ija.v().v();
/* 197 */       if (modelBase instanceof rm) {
/* 198 */         rm rm = (rm)modelBase;
/* 199 */         zz.v(rm);
/* 200 */         rm.clearData();
/*     */       } 
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v(UUID uUID, String str, int i) {
/* 210 */     EntityLivingBase entityLivingBase = (new ArrayList<>(FMLClientHandler.instance().getWorldClient().func_72910_y())).stream().filter(entity -> (entity.func_110124_au().equals(a) && entity instanceof EntityLivingBase)).findFirst().orElse(null);
/* 211 */     v(entityLivingBase, str, i);
/*     */   }
/*     */   
/*     */   public void v(EntityLivingBase entityLivingBase, String str, int i) {
/* 215 */     zz zz = v(entityLivingBase);
/* 216 */     if (zz == null) {
/*     */       return;
/*     */     }
/* 219 */     switch (str) {
/*     */       case "walk":
/* 221 */         if (zz.z() == null)
/* 222 */           return;  zz.v(zz.z().v());
/*     */         return;
/*     */       case "idle":
/* 225 */         if (zz.v() == null)
/* 226 */           return;  zz.v(zz.v().v());
/*     */         return;
/*     */       case "all":
/* 229 */         zz.v((String)null, i);
/*     */         return;
/*     */     } 
/* 232 */     zz.v(str, i);
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void v() {
/* 241 */     this.g.clear();
/* 242 */     this.q.clear();
/* 243 */     kq.q.g.invalidateAll();
/*     */   }
/*     */   
/*     */   public ConcurrentHashMap<UUID, zz> v() {
/* 247 */     return this.g;
/*     */   }
/*     */   
/*     */   public abstract xea.eos/moe/dragoncore/ija v(EntityLivingBase paramEntityLivingBase);
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\jca.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */